<?php $this->load->view('header');?>
<div class="page-container">
    <?php $this->load->view('sidebar');?>
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
        <div class="page-content">
            <?php $this->load->view('sale/_sub_nav');?>
            <div class="row">
                <div class="col-md-12">
                    <div class="table-toolbar">
                        <div class="pull-right">
                            <a href="<?php echo site_url('/teach/apply_create');?>" class="btn blue" >
                                <i class="fa fa-plus"></i> 新建申请
                            </a>
                        </div>
                    </div>

                    <table class="table">
                        <thead>
                        <tr>
                            <th>学生姓名</th>
                            <th>申请科目</th>
                            <th>申请年级</th>
                            <th>申请时间</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                            <?php if(isset($applies)&&!empty($applies)):?>
                                <?php foreach($applies as $apply):?>
                                    <tr>
                                        <td><?php echo $apply['student_name'];?></td>
                                        <td>数学</td>
                                        <td>1年级</td>
                                        <td><?php echo date('Y-m-d H:i:s',$apply);?></td>
                                        <td></td>
                                        <td>未处理</td>
                                        <td>
                                            <button data-pk="<?php echo $teacher->teacher_id;?>" class="btn btn-xs btn-info teacher_delete_btn">转为已处理</button>
                                            <button data-pk="<?php echo $teacher->teacher_id;?>" class="btn btn-xs btn-danger teacher_delete_btn">删除</button>
                                        </td>
                                    </tr>
                                <?php endforeach;?>
                            <?php endif;?>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>    <!-- END CONTENT -->
</div>




<?php $this->load->view('footer');?>

<script type="text/javascript" src="assets/scripts/custom/clue.js"></script>

<script>
    jQuery(document).ready(function() {
        App.init(); // initlayout and core plugins
        Clue.init();
    });
</script>

</body>
<!-- END BODY -->
</html>

